﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace PipeDetection.Model
{
    /// <summary>
    /// 管段检测区域
    /// </summary>
    
    public class PipeSectionInspection
    {
      
        [Browsable(false)]
        public int Id { get; set; }
        [DisplayName("所属管段"),ReadOnly(true), Category("参数")]
        public int PipeSectionId { get; set; }
        [DisplayName("检测区域"),Description("潜水器位置在底部、右侧、左侧 则分别对应检测方向 拱顶、左、右"), Category("参数")]
        public Rpositon RovPosition { get; set; }
        [DisplayName("视频文件")]
        [Editor(typeof(PropertyFileOpenItem),typeof(UITypeEditor)),Description("视频文件|*.mp4"), Category("参数")]
        public string VideoFile { get; set; }
        [DisplayName("帧率"), Category("参数")]
        public int Fps { get; set; }
        [DisplayName("总帧数"), Category("参数")]
        public int Frames { get; set; }
        [DisplayName("视频宽度"), Category("参数")]
        public int VideoWidth { get; set; }
        [DisplayName("视频高度"), Category("参数")]
        public int VideoHeight { get; set; }
        [DisplayName("缺陷范围"), Category("参数")]
        public Rectangle    DefectRect { get; set; }
        [DisplayName("里程范围"), Category("参数")]
        public Rectangle StaTionRect { get; set; }
        [DisplayName("断面范围"), Category("参数")]
        public Rectangle SectionRect { get; set; }
        [DisplayName("输出路径"), Category("参数")]
        [Editor(typeof(PropertyBrowerFloderItem), typeof(UITypeEditor))]
        public string OutDir { get; set; }
        [DisplayName("分辨率"), Category("参数")]

        public float resolution { get; set; }
    }
    public enum Rpositon
    {
    顶部,左侧,右侧
    }
}
